package com.itheima.course.design.service;

import com.itheima.course.design.dao.StudentDao;
import com.itheima.course.design.entity.Student;

public class StudentService {
    private StudentDao studentDao = new StudentDao();

    // 学生登录
    public Student login(String studentId, String password) {
        return studentDao.getStudentByIdAndPassword(studentId, password);
    }

    // 学生注册
    public boolean register(Student student) {
        return studentDao.addStudent(student);
    }
}